import { createApp } from "vue"
import App from "./App.vue"
import router from "./router"
import store, { initStore } from "./store"

// 全局引入组件
import ElementPlus from "element-plus"

// 样式
import "element-plus/theme-chalk/index.css"
import "element-plus/theme-chalk/display.css"
import "nprogress/nprogress.css"
import "normalize.css"
import "@/assets/css/base.css"

// 注册组件
import { registerMoudle } from "./plugins"

// 注册指令
import formatTime from "./directives/format-time"

const app = createApp(App)
registerMoudle(app)
initStore()
app.use(store).use(router).use(ElementPlus).use(formatTime).mount("#app")
// console.log(process.env.VUE_APP_BASE_NAME)
// console.log(process.env.VUE_APP_BASE_URL)
